//
// C++ Interface: frame
//
// Description: 
//
//
// Author: Os3 s.r.l. <xgui@os3.it>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//

#ifdef SWIGPYTHON
	%typemap(out) xgui::Widget * { $result = XGUIPyObjectCreate($1, false); }
#endif

namespace xgui
{
    %feature("docstring","derives from :class:`xgui.ContainerClass` ") FrameClass;
	struct FrameClass : public xgui::ContainerClass
	{
		FrameClass();
		std::string const &className();
		bool isInstanceable();
		xgui::Object * create(xgui::Object * parent, xgui::StringMap &properties);
	};

    %feature("docstring","**PROPERTIES**\n\n * **text** *(RW)* sets or retrieves the text displayed on the frame border.\n\n * **alignment** *(RW)* sets or retrieves the alignment of the text displayed on the frame border.It can be one of the following strings:*\"left\", \"center\", \"right\".default: \"left\"* ") Frame;
	class Frame : public xgui::Container
	{
		protected:
			Frame(xgui::Container * parent, const std::string & label);
			virtual ~Frame();

		public:
			xgui::Widget * getRootChild();
	};
}

%extend xgui::Frame {
	%pythoncode {
		def __del__(self):
			if self.valid: self.delPyOwner(self)
	}
}

%clear xgui::Widget *;

